﻿using System;
using System.Collections.Generic;
using System.Text;

class ExtensioMethodsTest
{
    public static void Main()
    {
        string tennisString = "Federer's forehand is an amazing shot";
        StringBuilder builder = new StringBuilder(tennisString);
        StringBuilder substringOfBuilder = builder.Substring(0, 7);
        Console.WriteLine(substringOfBuilder);
        List<int> list = new List<int>() { 2, 3, 4, 1, 5, 6, 8, 9, 7, 10 };
        Console.WriteLine(list.Avarage());
        Console.WriteLine(list.Sum());
        Console.WriteLine(list.Min());
        Console.WriteLine(list.Max());
        Console.WriteLine(tennisString.EachWordToTitleCase());
    }
}

